A post processing pass, during which a shader is used to render a quad fitting on the screen.
More...
A post processing pass, during which a shader is used to render a quad fitting on the screen.
Usually works with screen space data. Perfect for applying effect on a target for instance.
See TargetOperations::addPostProcessPass() for use.
◆ getAttachedShader()
Shader* nkGraphics::PostProcessPass::getAttachedShader |
( |
| ) |
const |
- Returns
- The shader used for rendering.
◆ isBackProcessPass()
bool nkGraphics::PostProcessPass::isBackProcessPass |
( |
| ) |
const |
- Returns
- Whether the post process is a back process pass (true) or not (false). See setBackProcess() for details.
◆ getBlendState()
BlendState* nkGraphics::PostProcessPass::getBlendState |
( |
| ) |
const |
- Returns
- The blend state used for rendering.
◆ getLinkedCam()
Camera* nkGraphics::PostProcessPass::getLinkedCam |
( |
| ) |
const |
- Returns
- The camera used for the pass.
◆ setProcessShader()
void nkGraphics::PostProcessPass::setProcessShader |
( |
Shader * |
shade | ) |
|
Sets the shader used for rendering.
- Parameters
-
◆ setBackProcess()
virtual void nkGraphics::PostProcessPass::setBackProcess |
( |
bool |
value | ) |
|
|
virtual |
Sets whether the pass is a back process pass.
Back process passes only writes to parts of the screen that have no depth written. If disabled, the pass paints over everything.
This can be useful when painting a skybox for instance, to only execute the shader on pixels not hidden.
- Parameters
-
value | Whether the pass should back process (true) or not (false). |
◆ setBlendState()
virtual void nkGraphics::PostProcessPass::setBlendState |
( |
BlendState * |
state | ) |
|
|
virtual |
Sets the blend state to use for the pass.
- Parameters
-
state | The blend state to use. |
◆ setLinkedCam()
void nkGraphics::PostProcessPass::setLinkedCam |
( |
Camera * |
cam | ) |
|
Sets the camera to use. The camera will be the reference to feed the shader pass memory slots.
- Parameters
-
◆ exportClassToTree()
virtual void nkGraphics::PostProcessPass::exportClassToTree |
( |
nkExport::Node * |
rootNode | ) |
|
|
overridevirtual |
Basic exporting capabilities.
- Parameters
-
rootNode | The tree to export to. |
Reimplemented from nkGraphics::Pass.
◆ importClassFromTree()
virtual void nkGraphics::PostProcessPass::importClassFromTree |
( |
nkExport::Node * |
rootNode | ) |
|
|
overridevirtual |
Basic importing capabilities.
- Parameters
-
rootNode | The tree to import from. |
Reimplemented from nkGraphics::Pass.
The documentation for this class was generated from the following file: